package com.zhuhjay.service.system.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Zhuhjay
 * @since 2023-02-25
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("system_file")
@ApiModel(value = "SystemFile对象", description = "文件存储表")
public class SystemFile {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @ApiModelProperty("真实文件名")
    private String realName;

    @ApiModelProperty("文件md5值")
    private String identifier;

    @ApiModelProperty("文件类型")
    private String type;

    @ApiModelProperty("文件大小(B)")
    private Long size;

    @ApiModelProperty("文件夹id")
    private String dirId;

    @ApiModelProperty("创建文件的用户id")
    private Integer userId;

    @ApiModelProperty("创建时间(上传时间)")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("该文件状态(1:存在,0:删除)")
    private Integer status;
}
